/*******************************************************************************
 * CLASS		WComm
 * AUTHOR		kbfromindia
 * SOURCE		http://www.codeproject.com/KB/cpp/WSFileTransfer.aspx
 * DESCRIPTION
 * This class is used for the networking interface of the Free Photo Booth
 * application. This class makes it very easy to create a socket and send a 
 * file over the socket at any port of your choosing.
 ******************************************************************************/
#include "winsock2.h"
#include <stdio.h>
#include <conio.h>
#include <iostream>
#include <fstream>
class WComm
{

public:
	
	WComm();

	 int connectServer(char*,int);
	 int sendData(char*);
	 int recvData(char*,int);
	void fileSend(char*);
	void fileReceive(char*);
	void startServer(int);
	void waitForClient();
	void closeConnection();
};